package com.hyt.it.ogt.ks.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hyt.it.ogt.ks.model.entity.CandidateLogAnswer;
import com.hyt.it.ogt.ks.model.vo.CandidateLogBeginTimeVO;
import com.hyt.it.ogt.opertaion.track.model.AnswerLogVO;

/**
 * <p>
 * 轨迹表-答案轨迹表 服务类
 * </p>
 *
 * author liteng
 * since 2022-11-22
 */
public interface ICandidateLogAnswerService extends IService<CandidateLogAnswer> {

    /**
     * 保存答题轨迹日志
     * @param answerLogVOList
     * @return
     */
    Boolean saveAnswerLog(List<AnswerLogVO> answerLogVOList);

    /**
     * 获取考生交卷时间
     * @param examId
     * @param operatorType
     * @param finishType
     * @return
     */
    List<CandidateLogBeginTimeVO> getCandidateLogCommitTime(String examId, String operatorType, String finishType);

    /**
     * 根据examId同步考生答案轨迹列表
     * @param examId
     * @return
     */
    void syncAnswerByExamId(String examId);

    /**
     * 同步考生答案轨迹列表
     * @return
     */
    void syncAnswerAll();

}
